﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Web;

namespace lazada.DAL
{
    public class ConnectionDB
    {
        public String ConnectionString = "Server=.;Database=LazadaDB;User Id=sa;Password=sa;";
        SqlConnection conn = new SqlConnection();

        public ConnectionDB()
        {
            conn.ConnectionString = ConnectionString;
        }

        public SqlConnection Connection
        {
            get
            {
                if (conn.State == System.Data.ConnectionState.Closed)
                    conn.Open();
                return conn;
            }
        }
    }
}